package com.skiving.cloud.ai.config;

import org.noear.solon.ai.chat.ChatConfig;
import org.noear.solon.ai.chat.ChatModel;
import org.noear.solon.annotation.Bean;
import org.noear.solon.annotation.Configuration;
import org.noear.solon.vault.annotation.VaultInject;

@Configuration
public class AiInitConfiguration {
    @Bean
    public ChatModel build(@VaultInject("${solon.ai.chat.deepseek}") ChatConfig config) {
        return ChatModel.of(config).build();
    }
}
